package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.Family;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author lai
 * @data 2021/11/17
 * @apiNote
 */
public interface FamilyMapper extends BaseMapper<Family> {
    List<Family> findfamily(@Param(value = "student_id") Integer studentId);

    @Select("SELECT * FROM `sys_family` WHERE portrait=#{portrait}")
    Family selectByPortrait(String portrait);
}
